package com.xjoyt.pay.master.interfaces;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.xjoyt.pay.dto.ExecuteResult;
import com.xjoyt.pay.dto.PageParam;
import com.xjoyt.pay.dto.PageResult;
import com.xjoyt.pay.master.params.DistributorChannelPageParam;
import com.xjoyt.pay.master.po.DistributorChannel;
import com.xjoyt.pay.master.vo.DistributorChannelMap;

public interface DistributorChannelContract {
	/**
	 * 代理商通道分页
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "loadPageChannel", method = RequestMethod.POST)
	PageResult<DistributorChannel> loadPageChannel(@RequestBody PageParam<DistributorChannelPageParam> param);

	/**
	 * 代理商通道删除
	 * 
	 * @param id
	 * @return
	 */
	@RequestMapping(value = "remove/{id}")
	ExecuteResult<?> remove(@PathVariable("id") String id);

	/**
	 * 新增代理商通道
	 * 
	 * @param param
	 * @return
	 */
	@RequestMapping(value = "save", method = RequestMethod.POST)
	ExecuteResult<?> save(DistributorChannelMap param);
}
